﻿using System.Configuration;
using FluentData;

namespace DSAServer.Utils
{
    public class DbUtils
    {
        public static IDbContext Main
        {
            get
            {
                IDbContext dbContext = new DbContext().ConnectionString(ConfigurationSettings.AppSettings["ConnectionString"], new MySqlProvider());
                dbContext.OnExecuting(Excuting);
                return dbContext;
            }
        }

        static void Excuting(CommandEventArgs args)
        {

        }
    }
}